package com.hgl.bi.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hgl.bi.web.entity.SetEntity;
import com.hgl.bi.web.model.vo.FileVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: BI
 * @description: 数据集持久层
 * @author: hgl
 * @create: 2025-02-16 21:32
 */
public interface SetMapper extends BaseMapper<SetEntity> {

    ArrayList<String> selectPathBySetId(Long setId);


    boolean sharedSet(long userId, Long setId, List<Long> userIds);

    boolean removeSharedSet(long userId, Long setId, List<Long> userIds);

    List<SetEntity> sharedPage(long userId, Integer offset, Integer size, String keyword);

    Long getTotalSharedSets(long userId, String keyword);

    List<Long> selectSharedUsers(long userId, Long id);

    Long selectSharedSets(long userId);

    Long sumAnalyzeCount(long userId);
}
